package com.bsi.core.authorization;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/*
 * Author: liusongs
 * Date: 2019/12/16 11:32
 * Content: 创建tokenvalue注解，用于配合HandlerMethodArgumentResolver进行解析小程序端传过来的token值
 */
@Documented
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
public @interface TokenValue {
    @AliasFor("value")
    String name() default "";

    @AliasFor("name")
    String value() default "";
}
